zino_inc = \
	$(ROOT)\drivers \
	$(ROOT)\drivers\f413\include \
	$(ROOT)\ZINO\inc \
	$(ROOT)\ZINO\filter \
	$(ROOT)\ZINO\config \
	$(ROOT)\ZINO\dev_info \
	$(ROOT)\ZINO\hardware\si24r1 \
	$(ROOT)\ZINO\hardware\spl06 \
	$(ROOT)\ZINO\hardware\pmw3901 \
	$(ROOT)\ZINO\hardware\Icm426xx \
	$(ROOT)\ZINO\hardware\Icm426xx\platform \
	$(ROOT)\ZINO\hardware\W25QXX \
	$(ROOT)\ZINO\AnoPTv8 \
	$(ROOT)\applications\fc \
	$(ROOT)\applications\fc\sensors \
	$(ROOT)\applications\fc\ano_tc \
	$(ROOT)\applications\fc\imu \
	$(ROOT)\applications\fc\motor_mix \
	$(ROOT)\applications\fc\rc \
	$(ROOT)\applications\fc\config \
	$(ROOT)\applications\fc\pid \
	$(ROOT)\applications\fc\sensor_fusion \
	$(ROOT)\applications\fc\control



zino_src = \
	./drivers/ringbuffer.c \
	./drivers/f413/drv_flash.c \
	./drivers/f413/drv_pin.c \
	./drivers/f413/drv_leds.c \
	./drivers/f413/drv_pwm_ws2812.c \
	./drivers/f413/drv_pwm.c \
	./drivers/f413/drv_adc.c \
	./drivers/f413/drv_spi.c \
	./drivers/f413/drv_spim.c \
	./drivers/f413/drv_soft_i2c.c \
	./drivers/f413/drv_uart4.c \
	./drivers/f413/drv_i2s.c \
	./drivers/f413/drv_spi_dma.c \
	./ZINO/zino.c \
	./ZINO/hardware/flash/flash.c \
	./ZINO/config/zino_config.c \
	./ZINO/dev_info/dev_info.c \
	./ZINO/filter/maths.c \
	./ZINO/filter/filter.c \
	./ZINO/hardware/Icm426xx/Icm426xxDriver_HL_apex.c \
	./ZINO/hardware/Icm426xx/Icm426xxDriver_HL.c \
	./ZINO/hardware/Icm426xx/Icm426xxSelfTest.c \
	./ZINO/hardware/Icm426xx/Icm426xxTransport.c \
	./ZINO/hardware/Icm426xx/platform/lcm42688P_read_polling.c \
	./ZINO/hardware/pmw3901/driver_pmw3901mb.c \
	./ZINO/hardware/pmw3901/pmw3901_polling.c \
	./ZINO/hardware/spl06/spl06_01.c \
	./ZINO/hardware/spl06/spl06_api.c \
	./ZINO/hardware/si24r1/si24r1.c \
	./ZINO/hardware/pwr/pwr_key.c \
	./ZINO/hardware/W25QXX/w25qxx.c \
	./ZINO/hardware/W25QXX/getData.c \
	./ZINO/rc/rc.c \
	./applications/fc/fc.c \
	./applications/fc/fc_state.c \
	./applications/fc/sensors/sensor_acc.c \
	./applications/fc/sensors/sensor_gyro.c \
	./applications/fc/sensors/sensor_baro.c \
	./applications/fc/sensors/sensor_tof.c \
	./applications/fc/sensors/sensor_opticalFlow.c \
	./applications/fc/sensors/sensors.c \
	./applications/fc/ano_tc/ano_tc_report.c \
	./applications/fc/ano_tc/ano_tc_cmd.c \
	./applications/fc/imu/imu.c \
	./applications/fc/motor_mix/motor_mix.c \
	./ZINO/AnoPTv8/AnoPTv8Cmd.c \
	./ZINO/AnoPTv8/AnoPTv8FrameFactory.c  \
	./ZINO/AnoPTv8/AnoPTv8Par.c  \
	./ZINO/AnoPTv8/AnoPTv8Run.c  \
	./ZINO/AnoPTv8/HWInterface.c \
	./applications/fc/rc/rc_controls.c \
	./applications/fc/sensor_fusion/estimator.c \
	./applications/fc/config/fc_config.c \
	./applications/fc/control/attitude.c \
	./applications/fc/control/position_z.c \
	./applications/fc/control/position_xy.c \
	./applications/fc/pid/pid.c





# $(ROOT)\ZINO\hardware\lsm6dsr
# $(ROOT)\ZINO\hardware\vi53\inc
# 	./ZINO/hardware/lsm6dsr/lsm6dsr.c\
	./ZINO/hardware/vi53/src/VI530x_Algorithm.c\
	./ZINO/hardware/vi53/src/VI530x_API.c\
	./ZINO/hardware/vi53/src/VI530x_Firmware.c\
	./ZINO/hardware/vi53/src/VI530x_System_Data.c\
	./ZINO/hardware/vi53/src/VI530x_User_Handle.c
# ./ZINO/hardware/Icm426xx/platform/lcm42688P_read_polling.c
include ./ZINO/hardware/NDS03_LINUX_SDK.V2.0.0/NDS03.mk
include ./rtthread.mk
include ./libhelix_mp3/libhelix_mp3.mk
include ./applications/mp3_player/mp3_player.mk
include ./applications/usb_device/usb.mk

#  \
# ./rt-thread/libcpu/arm/cortex-m4/context_gcc.S \
#
zino_src += $(rtthread_src)
zino_src += $(nd03_src)
zino_src += $(libhelix_mp3_src)
zino_src += $(mp3_src)
zino_src += $(usb_src)

zino_inc += $(nd03_inc)
zino_inc += $(libhelix_mp3_inc)
zino_inc += $(mp3_inc)
zino_inc += $(usb_inc)

zino_deps = $(patsubst ./%,./build/%,$(patsubst %.c, %.d, $(zino_src)))
zino_objs = $(patsubst ./%,./build/%,$(patsubst %.c, %.o, $(zino_src)))
zino_inc_dir = $(addprefix -I", $(addsuffix ", $(zino_inc)))
# $(info zino_inc_dir:$(zino_inc_dir))

inc_dir += $(zino_inc_dir)
nC_SRCS += $(zino_src) \
	./build/rt-thread/libcpu/arm/cortex-m4/context_gcc.S \
	./build/libraries/f413/cmsis/cm4/device_support/startup/gcc/startup_at32f413.s
nOBJS += $(zino_objs) \
	./build/libraries/f413/cmsis/cm4/device_support/startup/gcc/startup_at32f413.o \
	./build/rt-thread/libcpu/arm/cortex-m4/context_gcc.o
nC_DEPS += $(zino_deps) \
	./build/libraries/f413/cmsis/cm4/device_support/startup/gcc/startup_at32f413.d \
	./build/rt-thread/libcpu/arm/cortex-m4/context_gcc.d
